 <template>
	<view>
		<u-status-bar></u-status-bar>
		<view class="head">
			<image src="/static/mine/tx.png" class="head__tx" mode=""></image>
			<text class="head__nickname">读书人</text>
			<text class="head__id">ID：17474695</text>
		</view>
		<view class="con">
			<view class="box">
				<view class="box__item" v-for="(item,index) in list" :key="index" :class='index==list.length-1?"bb0":""' @click="navto(item.url)">
					<view class="u-flex u-flex-y-center">
						<image :src="'/static/mine/Frame'+item.icon+'.png'" class="box__item__icon" mode=""></image>
						<text class="box__item__text">{{item.text}}</text>
					</view>
					<view class="u-flex u-flex-y-center">
						<view class="u-flex u-flex-y-center" v-if="item.v1">
							<text class="box__item__val1">{{item.v1}}</text><text class="box__item__val3">金币</text>
							
							<text class="box__item__val2" style="margin: 0 8rpx;">+</text>
							<text class="box__item__val2">{{item.v2}}</text><text class="box__item__val4">红包</text>
						</view>
						<image src="/static/more.png" class="box__item__more" mode=""></image>
					</view>
				</view>
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				list:[
					{text:'金币余额',icon:'',v1:'660',v2:'300',url:'/pages/personal/balance'},
					{text:'最近阅读',icon:'-1',v1:'',v2:'',url:'/pages/personal/zuijin'},
					{text:'在线客服',icon:'-2',v1:'',v2:'',url:''},
					{text:'意见反馈',icon:'-3',v1:'',v2:'',url:'/pages/personal/feedback'},
					{text:'关于我们',icon:'-4',v1:'',v2:'',url:'/pages/personal/aboutus'},
					{text:'设置',icon:'-5',v1:'',v2:'',url:'/pages/personal/set'},
				]
			};
		}
	}
</script>

<style lang="scss">
.head{
	padding: 40rpx 0 24rpx;
	border-radius: 0rpx 0rpx 0rpx 0rpx;
	display: flex;
	flex-direction: column;
	align-items: center;
	&__tx{
		width: 112rpx;
		height: 112rpx;
		border-radius: 50%;
	}
	&__nickname{
		font-family: PingFang SC, PingFang SC;
		font-weight: 600;
		font-size: 44rpx;
		color: #000000;
		line-height: 62rpx;
		margin-top: 16rpx;
	}
	&__id{
		font-family: PingFang SC, PingFang SC;
		font-weight: 400;
		font-size: 28rpx;
		color: #333333;
		line-height: 40rpx;
	}
}
.con{
	padding: 16rpx 24rpx 50rpx;
}
.box{
	padding-left:24rpx;
	border-radius: 20rpx;
	background-color: #fff;
	&__item{
		height: 98rpx;
		border-bottom: rgba(205, 210, 254, .2) solid 1rpx;
		padding: 0 32rpx 0 8rpx;
		display: flex;
		align-items: center;
		justify-content: space-between;
		&__icon{
			width: 52rpx;
			height: 52rpx;
			margin-right: 16rpx;
		}
		&__text{
			font-family: PingFang SC, PingFang SC;
			font-weight: 400;
			font-size: 32rpx;
			color: #333333;
			line-height: 44rpx;
		}
		&__val1{
			font-family: DIN, DIN;
			font-weight: bold;
			font-size: 28rpx;
			color: #000000;
			line-height: 28rpx;
		}
		&__val2{
			font-family: DIN, DIN;
			font-weight: bold;
			font-size: 28rpx;
			color: #51CAEF;
			line-height: 28rpx;
		}
		&__val3{
			font-family: PingFang SC, PingFang SC;
			font-weight: 400;
			font-size: 24rpx;
			color: #000000;
			line-height: 28rpx;
		}
		&__val4{
			font-family: PingFang SC, PingFang SC;
			font-weight: 400;
			font-size: 24rpx;
			color: #51CAEF;
			line-height: 28rpx;
		}
		&__more{
			width: 52rpx;
			height: 52rpx;
		}
	}
}
.bb0{
	border-bottom: 0;
}
</style>
